﻿<Window x:Class="ThinningImage.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ThinningImage"
        mc:Ignorable="d"
        Title="MainWindow"
        Height="600"
        Width="600">
    <Grid>
        <Button HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Content="Start"
                Click="start_Click"
                Command="{Binding StartCommand}" />
        <Border BorderThickness="1"
                Height="514"
                Width="514"
                BorderBrush="Black">
            <Grid x:Name="canvas"
                  Height="512"
                  Width="512"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top">
                <Image Source="{Binding ProcessedSource}" />
            </Grid>
        </Border>
    </Grid>
</Window>